import Layout from '../views/layout/Layout'

const _import = require('./_import_' + process.env.NODE_ENV);

export default {
    path: '/upgradeMakeMoney',
    component: Layout,
    name: 'upgradeMakeMoney',
    meta: {title: '升级赚钱管理', icon: 'icon'},
    children: [
        {
            path: 'list',
            component: _import('upgradeMakeMoney/list'),
            name: 'upgradeMakeMoneyList',
            meta: {
              title: '升级赚钱',
              buttons: {
                add: { label: '新建', enabled: true },
                edit: { label: '编辑', enabled: true },
                banner: { label: 'banner管理', enabled: true }
              }
            },
        },
        {
            path: 'list/banners/:id',
            component: _import('upgradeMakeMoney/banner/list'),
            name: 'upgradeMakeMoneyListBanner',
            meta: {title: '升级赚钱banner管理', index: '/upgradeMakeMoney/list'},
            props: true,
            hidden: true
        },
        {
            path: 'set',
            component: _import('upgradeMakeMoney/set'),
            name: 'upgradeMakeMoneySet',
            meta: {
              title: '升级赚钱专题设置',
              buttons: {
                edit: { label: '编辑', enabled: true }
              }
            },
        },
        {
            path: 'memberList',
            component: _import('upgradeMakeMoney/member/list'),
            name: 'upgradeMakeMoneyMember',
            meta: {
              title: '升级赚钱会员列表',
              buttons: {
                edit: { label: '编辑', enabled: true },
                goods: { label: '商品管理', enabled: true }
              }
            },
        },
        {
            path: 'memberList/goods/:id',
            component: _import('upgradeMakeMoney/goods/list'),
            name: 'upgradeMakeMoneyMemberGoods',
            meta: {title: '升级赚钱商品管理', index: '/upgradeMakeMoney/memberList'},
            props: true,
            hidden: true
        }
    ]
}
